Updated config handling to use FileConfiguration class.