- added prototypes for replacement functions.