Changed id type to long.