Common API functions for YAMJ