Add misc small functions