Initial commit with admittedly ugly module code.