Added new code to implement region A for the case of a cylinder