Updated onload approach.