Use C11
Added snake loop with random duration