Coding style changes from datacoin, it looks like it should work...