Add pre and post scripts