Made record mode a dep