Changed code to build project without compile errors