Looking beyond tasks to develop flexible leadership