Added conversion functions.