Implement storing and calling function references