added variables, and started BOOL function.