Refactor my-load function.