* Further changes to add a preload event for providing custom options