We probably need error handling wen calling this as well - minimally log a message to the console.