Optimize conditionals.