Support for nested loops and conditions