Linear, not nearest
Error checking
Documentation