Added --timeout to set a sampling timeout in seconds.