Added automation to rest