Added priority concept.