Rename function to better suit its purpose