Working in speed, return flag. General clean up. Expanded cost limit :)

Signed-off-by: chthonic7 <fooliot@gmail.com>