Added runtime loop