Changed stateless function name to groundstate