Credit @kevintunc and deviate from original design