Started from scratch. Defining all variables.