Updated screen refresh to only happen if screen is updated.