Added callback to the main process