Some tweaking of hecke matrix code.