This is a better version of the arrow rules that uses a loop and if statements instead of event blocks.