Add proper fee calculation with priority considered