The example you provided doesn't work, not sure if this is possible without a callback?