Added exceptions and bind method