Added a helper method