Ae fn functionality

review @tleach cc @nrschultz 
Sure.