Various source codes, moved into one place