Some useful functions for Kerbulator