Improved exception handling and did some refactorings