Moving the funtion implementation to .h as compiler was not generating code for unused functions.