Moved check_equality() here
Moved prototypes
Moved store_special_variables() here