Added converting long to bytes