Clean up code syntax and remove console statements.