Codes for STF research