Replaced deprecated "bind" command with "handleRequest"