Updating the constructor to accept configs for other variables