Still trying to fix implicit declaration of function