Prepared basic structs and some functions.