Rahul - Factored out some code into util namespace.
Rahul - Learnt ‘concede’ doesn’t exactly mean what I thought it means. Changed name to ‘provided’.
Rahul - Formatting.