Add late state binding - refs #513

This code duplicate mine. Remove one of variants, please.