Added api option and fixed trusted time