Updated stub and modified error checking in bind events