Advanced search fully implemented and bugs fixed.