Is there a way to do this automatically?