Added function prototypes in engine