Bash for timout & bug fixes