Recursive import handling