Fixed the compilatiopn input and output to use the new function