Complete functionality requested
added function for lower level activity