Adding panel functionality.