Removing apply's block to simplify the code.