Some modification for view optimization.