The indentation is off here. This was written in rather confusing form, sorry about that.