Removed math.ceiling and added timer to readport