Variable refactoring, ForeachStep, SendMessage update