Moved functions around and renamed screen variable.