Added some higherorder functions