Refactor functions
Die function
Add utils.go