Fixing up Apply function typing