Align needs to be call with region context. Also added checks to prevent this from crashing if not called properly.