Move require within the function.