Implement auto startup function.