This is a fork of Jesse's src code.