Added crystal functionality.
-Frankie