Add version command
Mark appropriate globals as volatile