Fixed accidentally overwriting the type function