Ok, it's back to working. But I still think there must be issues with
arcsin and arccos.. Darn.