Framework for distributed execution