Changed startup color, moved variables local to functions