Added oae function