Started work on saving amf