Adding AM feature

Thanks to Shawshark :)