Fixed prototypes for fucntions