Final code after all the checks.