Moved function calls inside 'bind'