Less derpy way of doing it