Adding API, functions for performing tests etc.