Added stdin input to extract