Check for genesis function before calling for better portability