Made onload optional