Copy of oastat for easy branching