Moved helper method