Added helper method and before filter.