Removed another memory issues. Expanding the environment somehow fucked up when using lists later on. Javascript memory management ismysterious..