Renamed setFrameListener to startFrameListener and removed commented code