Adapted by Nejc Furh, inspired by @evervault.com