Initial load modified from davidfor's KoboUtilities