Code for crandalf servers