Removed use of register keyword which is unused on modern compilers and produces tons of warnings.