Added main helper method