Inbox optimized and memory debugged with Valgrind