Changed the main public method to return generic RunTimeException.