Place all this in the init function.