Updated so the client side version is fully runnable and configurable