Remove loops