Add some logic to communicate between front and back app.