Fix many prototypes
Remove unused prototype