Add function to check signature