First version. Better decision making incoming