It turns out wedging oneself sideways at the bar, fixing the server with a wide-eyed desperate stare and wagging a bill around isn't how you get served in a hurry.

Leave it to science to set us straight on exactly the right way to get the bartender's attention.

A consummate professional, the barkeep processes the cast of characters lining up for a hot toddy and prioritizes based on when patrons land at the bar and how ready they are to order, according to researchers at Germany's Bielefeld University.

After analyzing 105 attempts to order drinks at various nightclubs in Germany and Scotland, the researchers drew this conclusion:

The most effective way to get your drink on is to stand square at the bar -- no wedging -- and stare at the bartender (in a non-creepy way) as they go about their business.

The German team's findings, published in the journal Frontiers in Psychology, analysed 105 attempts to order drinks at nightclubs in Bielefeld and Herford in Germany and Edinburgh in Scotland.

"The results revealed that bar staff responded to a set of two non-verbal signals," wrote Sebastian Loth, a psychologist and lead author of the study. "First, customers position themselves directly at the bar counter and, secondly, they look at a member of staff. Both signals were necessary and, when occurring together, sufficient."

But, of course, researchers have something more in mind than just easing the bar flow.

They're looking to build a better, faster, stronger bartender. That's right, a bartending robot.

Bielefeld University is developing a bar-tificial intelligence system with four-fingered hands and a tablet for a face, according to the Daily Mail. It's called Joint Action in Multimodal Embodied Systems.

But at the bar, you can just call him JAMES.

Jan de Ruiter, the school's chair of psycholinguistics, told The Daily Mail that JAMES will be more than a glorified drink blender.

“In order to respond appropriately to its customers the robot must be able to recognize human social behavior."

Cheers to practical science!

Also on HuffPost:

Loading Slideshow...
  • Pizza With A Side Of Racism

    A Papa John's customer snapped a photo of her receipt, which contained an <a href="" target="_hplink">offensive racial slur</a> in place of the customer's name.

  • 'Best Butt' Discount

    One woman was surprised to find that along with her veggie bowl, she received a <a href="" target="_hplink">discount for having the 'best butt'</a> and being the 'best looking' person in the fast food joint.

  • Dry Cleaner Gaffe

    A customer got quite a surprise when he picked up his freshly-laundered shirts. The anonymous consumer, dubbed <a href="" target="_hplink">'Asshole, Alex'</a> apparently had the cleaning bill comped.

  • Profanity-Laden Receipt

    Two Burger King employees were fired after a customer noticed that his <a href="" target="_hplink">receipt read 'F*ck You'</a> where it would normally say 'Thank You'.

  • Bruins Celebrate In Style

    After the Boston Bruins won the Stanley Cup, they partied... hard. The team apparently <a href="" target="_hplink">rang up a $156,000 bar tab</a> at a nightclub in the Foxwoods Casino, according to the <em>Boston Globe</em>.

  • Restaurant Settles Suit Over Racial Slurs

    A California steak house settled a lawsuit with a customer that claimed his <a href="" target="_hplink">credit receipts contained several racial slurs</a> where his name should have been.

  • Radio Shack Refund Gets Ugly

    A Maryland woman got a little something extra along with her refund when she discovered that an <a href="" target="_hplink">associate deemed her an 'ugly itch'</a> from 'ghettohood, USA'.

  • Chick-Fil-A In Hot Water

    Chick-Fil-A garnered national attention after a <a href="" target="_hplink">customer snapped a photo</a> of two receipts that had labeled Asian-American customers as 'Ching' and 'Chong'.

  • Walmart Customers Find Jesus

    A couple claimed their <a href="" target="_hplink">Walmart receipt contained the face of the Son of God</a>.

  • Now THAT'S An Account Balance

    An ATM customer found this surprising receipt still in the machine. The receipt, which shows a whopping <a href="" target="_hplink">balance of nearly $100 million</a>, supposedly belonged to hedge fund manager David Tepper.

  • Server Has Choice Words For Kids

    A server at a Chichos Pizza <a href="" target="_hplink">restaurant labeled his customers</a> as 'high as shit kids'. Fortunately, the customers had a sense of humor and posted the receipt to Reddit to much fanfare.