Added obstacles detection