Use <= 4 instead of < 4.