Merge pull request #7 from miljan-aleksic/master

Function reference fix