Port over some of the work from try to use as a frame for integer