A lawyer for Barry Bonds is urging a federal appeals court to throw out the baseball player's conviction for obstruction of justice.

Dennis Riordan argued Wednesday before the 9th U.S. Circuit Court of Appeals that Bonds was never precisely charged with the crime that he was convicted of, according to Associated Press. A jury had found Bonds guilty two years ago of obstruction of justice because he stated that he was a "celebrity child" when asked about taking performance-enhancing drugs.

A former professional outfielder, Bonds played for the Pittsburgh Pirates and San Francisco Giants from 1986 to 2007. His father is former major league All-Star Bobby Bonds. The younger Bonds made his professional debut in major league baseball with the Pittsburgh Pirates in 1986 and would later join the San Francisco Giants in 1993, where he remained until 2007.

Bonds broke many records during his time as a professional player, including the all-time home run record in major league baseball with 762.

Check out some of Bonds' career highlights here:

But controversy soon followed when Bonds become a key figure in baseball's steroids scandal.

He was brought up on charges of obstruction and perjury in 2007 for apparently lying to the grand jury during the federal investigation of Bay Area Laboratory Co-Operative (BALCO), a company that may have distributed performance-enhancing drugs to high profile athletes. Bonds testified that he never knowingly took illegal drugs.

The trial began March 21, 2011 and Bonds was convicted on April 13, 2011 on the charge of obstruction of justice.

During his first year of eligibility on the ballot, on January 9, 2013, Bonds was denied entry into baseball's Hall of Fame.

Assistant U.S. Attorney Merry Chan said that the indictment charged Bonds mostly with obstruction and this allowed jurors to convict him if they believed that any of his testimony was misleading.

A decision from the three-judge panel on whether the felony conviction will stand has not been issued yet.