Switched references to other classes into function pointers.