Added Coral functionality and tests