Frame function is required.