Attempt at fixing sleep issue