Refactored Common.php

it would be good to add t :)