Improvements to the 'on' function. Removal of for loops by using the already implemented swap function, and made variable argument list instead of explicitly having to send a list.