Added custom write values to medieval
Used medieval write values in engine