Smart Framing functionality

Smart Framing functionality