Copied from https://github.com/ronmamo/reflections