Removed redundant data recording and replaced ||| with ;