Moved prototypes to header