Added pointers to function