Now with a working inline callbacks implementation.