Initial commit. Warning: untested, use at your own risk!