Added an ActivitySearch creation function to serve as a factory.