Added custom exceptions.