Conditional module import