Moved clear screen to end to avoid flashing