Replace createFrame calls with an improved create function call.