This would be a lot clearer without the suffix logic. Can you wrap this in a proper `if... elsif` construct?