Changed property attributes to an int because they were truncated when casted to a char.