Using variables to get core dependency