Added start code for logics engine