Is there a way to automate this process?