Moved _bind() function to function file