Added log spacing option to mass code