Use getFunction instead of fun property