Added Brandon's initial unmodified code.
Don't initialize if there aren't enough items to use.