Updated the q module with node adapter functions.