Created rough API wrapper on the server