Few fixes
Added multiple pan checkign