Revamped the checking system and incorporated costum exception handling