Add function to bitcap