Refactored to GCC coding conventions.