STEALING STUFF FROM @dmalikov.