Added returnType to function metadata