Increasing items to 1000, just a scaling test.
Copying code over into kernel, need to figure out what goes where, and
what kinds of changes need to be made.
Moving out the function prototypes into the header file.