All logic added.