Easier implementation of passing callbacks