Encode CSSpot object, add user handler