Added rough save functionality