This while loop makes me sad, kill it