Made input more efficient.