Removed dead code, changed pop_front code a bit