Added priority-based calculation snippets (needs alot improvements)
Deleted outcommented code