Added brightness and logic to invalidate executed block when entering a new minor beacon region.