Code working weekends on STR problems

code