Changed name func to fn for consistency