Updated API, create new instance instead of using global