Code cleanup
Added method to get data when using provider in configs