Modified code of dynamic signature by Hoolean