Refactored create snapshot script
Refactored create alias script