Moved function declaration to .h file