Added auto-load function.