Improvement to shares controller.