Replaced // comments with #pragma marks to keep stuff tidy.