Add support for main as Hash