Added functionmap for triggering by types