Workaround for missing Function.bind