Updated activities. Fixed some bugs.