Added Stan's code to menu state