Rewrote environment to use records
Updated amulet