made serialCheckInterval hardcoded. Will be replaced later by a better implementation, but this is fool proof and works for now