Added declarations of functions