Add statement before start and end refresh