Useful utilities for QML