Library not working again, possibly a problem with sine function.