I've updated the branch - moved the if (dirty) block