Moved helper method to bottom of spec