Fixing passing reference to extract
Fixing formatting