Work tree moved to a separate function