Exception Handling added.