Updated to use boost coding style.