Automatic resource gen