Added weapon API function