Added priority definition method.