Managed to get Function to compile.