Added some backend functionality.