Update main function to test things (crashes)