Implemented activity generator.