Properly bind function.