Extract function for signature generation