CPU load fix
Added prototypes