Moved configure using instance to separate class