Put some spacing in an if block because I kept reading the code as
$commhist{$command}->$now which is distinctly not what it actually is.