Added timeout to exec