Implement -w/--work option