Separate function to create storage