Added forward declaration of function