Only require server/client when needed