Basic (buggy) save function