Changed addressCheck() to be more generalized.