Main authorize functionality were partially reworked according to new spectification.