Add before_filter method