Substituted out calls to %x with system instead for readability purposes