Initial, experimental implementation of API