Add timeout to instance id fetch; check for errors
Add Perldoc