Reimplemented back-end connection to front-end.