Added added type conversion to int for flexibility