Fixed access denied issue (try/except), some minor design changes (Thanks Leo)