Completed Citrine, and Amethyst code.