Return Null if no pending tasks