Moved some function and parameter declarations to an external header