Initial code for wriggle parameter search