Added check_arch function (NEED TESTER)