Added an exception if the method doesn't exist