TODO: Document behavior inside/outside frame and example usage.