Thanks for the help, but is there a way to do it without writing the same code over and over?