More compiler issues, fixed function delcaration