Cleaned up helper script. Fixed vertical resize bug.