Return properly from bitbucket