Eliminated unnecessary event function.