Switched to FileStream instead of MemoryStream for obvious reasons