Implemented first frame/ last frame and before /After