Update how properties are set

Exception would only be thrown if debug mode is on