Updated based on Quest functions.