Updated code to display true Q value.