Added some activity code