Debugging... Fixing memory error.