Basic code for all.