Use the cobalt methods if available

Change-Id: I4fb76df77115e1c5db109fd8b188f2b11eaa1471