Manual Debugged working, now for the automated version :)