Ported some ST2-specific functionality.