[Update] - made changes to sharads code.