Work towards a monadic approach.