Cleaner controller code.