Changed sample to a short. It was causing problems as a long