Initial standalone server code