Added loader->save function. Cleaning up.