Algorithm complications...