Removed debugging. Fixed problem with initializing signture variable to early