Switched to document ready.