Avoiding warnings and real environment