Changed Priority type to long to allow for larger values