Cleaning up check resource code