Add support for server-side environment