Roughed out initial version of crypt