Added options to variablebox and did some cleanup