This function takes an argument and was causing an error. As it seems optional, I removed it.