Made some changes to the MarkSign function