Applied patch to add prime support to the server