Redesigned AM interface, added functions