Added timeout when acquiring.

Added timeout when acquiring.