Changed the Extract function declaration