Modified API functions. Added script for Jenkins