Change AR dependency to be more flexible