Basic logic built.