Adding some prototypes.
Fixed a typo