Added before filter and added some other changes also