Only require packages when needed