Refactor particularly of Avatar.lsl in effort to reduce memory issues