Changed indentation, added priority field