Functionality and Exception handling