Alternative script provided by /u/singe