Updated to use .on() instead of .bind().