Added check if CP is aviable