Replace OpenFrame with middleclcass