Created custom helper method