Added reading discrete ports