Controller rewrote