Added subfiles in AMS main