Pass arguments to callback functions