Use "resolve" function?